package com.chinasofti.manager.domain;

public class TestStudent2 {
    public static void main(String[] args) {
        Student stu = new Student();
        System.out.println(stu);//打印当前类的地址值
        stu.name="阿珍";
        stu.age=18;
        System.out.println(stu.name+stu.age);
        stu.study();
        Student stu1 = new Student();
        System.out.println(stu1);//打印当前类的地址值
        stu1.name="阿强";
        stu1.age=20;
        System.out.println(stu1.name+stu1.age);
        stu1.study();
    }
}
